using System;
using System.Runtime.Serialization;
using Oracle.ManagedDataAccess.Client;

namespace Oracle.ManagedDataAccess.Types
{
	[Serializable]
	public sealed class OracleNullValueException : OracleTypeException
	{
		public OracleNullValueException()
		{
			m_number = ResourceStringConstants.TYP_NULLVALUE;
			m_mesg = OracleStringResourceManager.GetErrorMesg(ResourceStringConstants.TYP_NULLVALUE);
		}

		public OracleNullValueException(string message)
			: base(message)
		{
			m_number = 0;
			m_mesg = message;
		}

		protected OracleNullValueException(SerializationInfo info, StreamingContext context)
			: base(info, context)
		{
		}
	}
}
